<div id="grey_tabs">
  <ul>
    <li><a href="index.php"><span>{#PLIGG_Visual_Published_News#}</span></a></li>
  </ul>
</div>

<h2>{$page_header}</h2>

{php}
	global $db, $dblang, $globals, $main_smarty, $search, $offset, $from_where, $page_size, $link_id, $linksum_sql, $linksum_count;


echo '<div id="contents">';
{/php}
    {if $Voting_Method eq 1}
    <b>{#PLIGG_Visual_Pligg_Sort_News_By#}:</b>
	{if $paorder eq 1}{#PLIGG_Visual_Pligg_Newest_St#}{else}<a href="shakeit.php?part=upcoming&order=1">{#PLIGG_Visual_Pligg_Newest_St#}</a>{/if} |
	{if $paorder eq 2}{#PLIGG_Visual_Pligg_Oldest_St#}{else}<a href="shakeit.php?part=upcoming&order=2">{#PLIGG_Visual_Pligg_Oldest_St#}</a>{/if} |
	{if $paorder eq 3}{#PLIGG_Visual_Pligg_Most_Pop#}{else}<a href="shakeit.php?part=upcoming&order=3">{#PLIGG_Visual_Pligg_Most_Pop#}</a>{/if} |
	{if $paorder eq 4}{#PLIGG_Visual_Pligg_Least_Pop#}{else}<a href="shakeit.php?part=upcoming&order=4">{#PLIGG_Visual_Pligg_Least_Pop#}</a>{/if}
    {/if}
{php}   
	include('./libs/link_summary.php'); // this is the code that show the links / stories
echo '</div>';

do_pages($rows, $page_size, getmyurl("shakeit")); // show the "page" buttons at the bottom 

{/php}